package com.ibeeking.found.content.api.feign;


import com.ibeeking.found.content.api.common.dto.CouponInfoDTO;
import com.ibeeking.found.content.api.feign.fallback.ContentCouponBFallbackFactory;
import com.ibeeking.nematos.utils.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author ibeeking
 */
@FeignClient(name = "mall-marketing-b-server", path = "/b", contextId = "contentCouponBClient", fallbackFactory = ContentCouponBFallbackFactory.class, decode404 = true)
public interface ContentCouponBClient {

    /**
     * 手动批量发券
     *
     * @param ids
     * @return
     */
    @PostMapping(value = "/coupon/feign/v1/queryInfoByIds")
    ResponseResult<List<CouponInfoDTO>>  queryInfoByIds(@RequestBody List<Long> ids);

}
